const api = 'http://roe.icebartech.com/api/admin/';
const api2 = 'http://roe.icebartech.com/api/';
module.exports = {
  //管理员
  ADMIN: {
    LOGINOUT:api+'user/logout',    // 登出接口
    LOGIN: api + 'user/login',      //登录接口
    UPDUSERPWD: api + 'user/updUserPWD', //重置密码接口
  },
  USER:{
    FINDADMINUSERBYPAGE:api+'user/findAdminUserByPage',   //  分页获取用户列表
    FINDUSERPERMISSIONS:api+'user/findUserPermissions' ,  //  用户权限列表
    FINDADMINUSERDETAILBYUSERID:api+'user/findAdminUserDetailByUserId',   // 用户详情
    SAVEADMINUSER:api+'user/saveAdminUser',    // 保存用户
    DELETEADMINUSERBYID:api+'user/deleteAdminUserByUserId',     // 删除
  },
  SYSTEM:{
    ADMINUPLOADFILE:api2+'base/sys/admin/getOSSUploadUrl',   //得到地址
    LOADDICTIONARY:api2+'sys/loadDictionary',
    FINDAPPROLEBYPAGE:api+'role/findAppRoleByPage',   // 分页获取角色列表
    GETALLAPPPERMISSION:api+'role/getAllAppPermission',  // 获取所有权限列表
    GETROLEINFOBYID:api+'role/getRoleInfoByRoleId',   // 获取角色详情
    DELETEROLEBYID:api+'role/deleteRoleByRoleId',   // 删除角色记录
    SAVEAPPROLE:api+'role/saveAppRole',   // 保存角色
  },
  BANNER:{
    DELETE:api+'banner/deleteBanner',
    FINDPAGEALL:api+'banner/findBannerByAll',
    FINDBANNERBYID:api+'banner/findBannerById',
    SAVEBANNER:api+'banner/saveBannerInfo'
  },
  GROUP:{
    DELETE:api+'group/deleteGroupInfo',
    FINDGROUPBYALL:api+'group/findGroupInfoByAll',
    FINDGROUPBYPAGE:api+'group/findGroupInfoByPage',
    IMPORT:api+'group/groupInfoImport',
    EXCELGROUP:api+'group/groupList2Excel',
    SAVE:api+'group/saveGroupInfo'
  },
  STAFF:{
    FINDSTAFFBYALL:api+'staff/findStaffInfoByGroup',
    FINDSTAFFBYID:api+'staff/findStaffInfoById',
    FINDSTAFFBYPAGE:api+'staff/findStaffInfoByPage',
    RESTPWD:api+'staff/restStaffPwd',
    SAVE:api+'staff/saveStaffInfo',
    IMPORT:api+'staff/staffInfoImport',
    EXCEL:api+'staff/staffList2Excel',
    DELETE:api+'staff/deleteStaff',
    FINDWORDCARD:api+'staff/findStaffInfoByWordCard',
    FINDINFOBYNAME:api+'staff/findStaffInfoByName'
  },
  INFO:{
    DELETE:api+'info/deleteInfo',
    FINDINFOBYID:api+'info/findInfoById',
    FINDINFOBYPAGE:api+'info/findInfoByPage',
    SAVE:api+'info/saveInfo'
  },
  PROJECT:{
    DELETE:api+'project/deleteProject',
    FINDPROJECTBYID:api+'project/findProjectDetail',
    FINDPROJECTBYPAGE:api+'project/findProjectByPage',
    GRADESTAFF:api+'project/gradeStaff',
    EXCEL:api+'project/groupList2Excel',
    IMPORT:api+'project/projectInfoImport',
    SAVE:api+'project/saveProject'
  },
  BACKGROUND:{
    SAVE:api+'background/saveBackground',
    FINDALL:api+'background/findBackgroundAll',
    FINDBACKGROUND:api+'background/findAdminBackground'
  }
    
}
